define(function(require, exports, module) {

  var Backbone = require('backbone');
  var $ = require('jquery');
  var _ = require('underscore');
  var jsonview = require('jsonview');
  var tmpl = require('text!../tmpl.html');
  var drag = require('hy5b/frontend/drag/index')
  var jqueryUI = require('http://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js')
  require(['css!http://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.css'])

  function main() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    $app.append(tmpl);

    drag(document.getElementById('mydrag'), function() {
      p(arguments);
    })

    $('#draggable').draggable();
  }

  return main;
})
